<form name="form" class="g-form" novalidate ng-submit="stepThreeNext(form.$valid)">

    <h4>技术方案的提交者与所有者信息，准确的填写将有助于对方案的沟通与推广</h4>

    <div class="form-group form-group-sm row"
         ng-class="{'has-error': form.contactInfoName.$invalid && clicked[2]}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>联系人</strong>
            <small>您的真实姓名，迈科技平台为您真实的项目提供服务与保障</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control" type="text" ng-model="formData.contactInfo.name"
                   name="contactInfoName" title="您的真实姓名，迈科技平台为您真实的项目提供服务与保障"
                   required placeholder="您的真实姓名，迈科技平台为您真实的项目提供服务与保障"/>
        </div>
        <div class="col-xs-2" ng-messages="form.contactInfoName.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row"
         ng-class="{'has-error': form.contactInfoPhone.$invalid && clicked[2]}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>联系电话</strong>
            <small>手机号码，仅对本方案未来涉及的项目相关人员公开</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control" type="text" ng-model="formData.contactInfo.phone"
                   name="contactInfoPhone" title="手机号码，仅对本方案未来涉及的项目相关人员公开"
                   required pattern="(?=.*\d).{11}" placeholder="手机号码，仅对本方案未来涉及的项目相关人员公开"/>
        </div>
        <div class="col-xs-2" ng-messages="form.technologyContactName.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row"
         ng-class="{'has-error': form.relationWithOwner.$invalid && clicked[2]}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>责任关系</strong>
            <small>您与技术所有方的关系，对所有平台用户保密</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="本人"
                       required>
                本人
            </label>
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="亲属"
                       required>
                亲属
            </label>
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="朋友"
                       required>
                朋友
            </label>
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="雇佣"
                       required>
                雇佣
            </label>
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="授权"
                       required>
                授权
            </label>
            <label class="radio-inline">
                <input type="radio" name="relationWithOwner" ng-model="formData.relationWithOwner" value="其他"
                       required>
                其他
            </label>
        </div>
        <div class="col-xs-2" ng-messages="form.relationWithOwner.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': form.ownedBy.$invalid && clicked[2]}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>所属机构</strong>
            <small></small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="radio-inline">
                <input type="radio" name="ownedBy" ng-model="formData.ownedBy" value="机构" required> 机构
            </label>
            <label class="radio-inline">
                <input type="radio" name="ownedBy" ng-model="formData.ownedBy" value="个人" required> 个人
            </label>
        </div>
        <div class="col-xs-2" ng-messages="form.ownedBy.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': form.organization.$invalid && clicked[2]}"
         ng-if="formData.ownedBy==='机构' && formData.ownedBy!==''">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>所属机构</strong>
            <small>真实的机构全称，优质的机构背书将有助于方案的推广</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control" type="text" ng-model="formData.organization" name="organization"
                   required placeholder="真实的机构全称，优质的机构背书将有助于方案的推广"/>
        </div>
        <div class="col-xs-2" ng-messages="form.organization.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': form.postOrTitle.$invalid && clicked[2]}"
         ng-if="formData.ownedBy">
        <label class="col-xs-offset-2 col-xs-8">
            <strong ng-bind="formData.ownedBy === '机构' ? '职务' : '职称'"></strong>
            <small>所有者身份</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control" type="text" ng-model="formData.postOrTitle" name="postOrTitle"
                   required placeholder="所有者身份"/>
        </div>
        <div class="col-xs-2" ng-messages="form.postOrTitle.$error" ng-show="clicked[2]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm" style="text-align: center">
        <button type="button" class="btn btn-info btn-meta-14 btn-meta-blue" ui-sref="^.two">上一步</button>
        <button type="submit" class="btn btn-info btn-meta-14 btn-meta-blue">完&nbsp;&nbsp;成</button>
    </div>

</form>
